import { createStore, applyMiddleware, combineReducers } from "redux";
import thunk from "redux-thunk";

import { composeWithDevTools } from "redux-devtools-extension";
import { IsHiddenTabBarReducer } from "./reducer/isHiddenTabBar_reducer";
import { getCurCity } from "./reducer/getCurCity_reducer";

const allReducer = combineReducers({
  isHiddenTabBAR: IsHiddenTabBarReducer,
  curCity: getCurCity,
});

const store = createStore(
  allReducer,
  composeWithDevTools(applyMiddleware(thunk))
);

export default store;
